<script>
	import Vue from 'vue'
	export default {
		onLaunch: function() {
			uni.getSystemInfo({
			    success: function(e) {
			      // #ifndef MP
			      Vue.prototype.StatusBar = e.statusBarHeight;
			      if (e.platform == 'android') {
			        Vue.prototype.CustomBar = e.statusBarHeight + 50;
			      } else {
			        Vue.prototype.CustomBar = e.statusBarHeight + 45;
			      };
			      // #endif
			      // #ifdef MP-WEIXIN
			      Vue.prototype.StatusBar = e.statusBarHeight;
			      let custom = wx.getMenuButtonBoundingClientRect();
			      Vue.prototype.Custom = custom;
			      Vue.prototype.CustomBar = custom.bottom + custom.top - e.statusBarHeight;
			      // #endif		
			      // #ifdef MP-ALIPAY
			      Vue.prototype.StatusBar = e.statusBarHeight;
			      Vue.prototype.CustomBar = e.statusBarHeight + e.titleBarHeight;
			      // #endif
			    }
			  })
			console.log('App Launch')
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>


<style>
	/* colorUI样式 */
	@import "./colorui/main.css";
	@import "./colorui/icon.css";
	
	/* 引入自定义图标库 */
	@import "./common/iconfont/iconfont.css";
	
	/* #ifndef APP-PLUS-NVUE */
	/* uni.css - 通用组件、模板样式库，可以当作一套ui库应用 */
	@import './common/uni.css';
	@import '@/static/customicons.css';
	/* @import '@/uni_modules/uni-scss/index.scss'; */
	/* H5 兼容 pc 所需 */
	/* #ifdef H5 */
	@media screen and (min-width: 768px) {
		body {
			overflow-y: scroll;
		}
	}
	
	/* 顶栏通栏样式 */
	/* .uni-top-window {
	    left: 0;
	    right: 0;
	} */
	
	uni-page-body {
		background-color: #F5F5F5 !important;
		min-height: 100% !important;
		height: auto !important;
	}
	
	.uni-top-window uni-tabbar .uni-tabbar {
		background-color: #fff !important;
	}
	
	.uni-app--showleftwindow .hideOnPc {
		display: none !important;
	}
	
	/* #endif */
	/* #endif*/
	
	/*每个页面公共css */
</style>
